/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package za.ac.cput.DesignPatterns.Creational.builder.conf;

import org.springframework.beans.factory.annotation.Configurable;
import org.springframework.context.annotation.Bean;
import za.ac.cput.DesignPatterns.Creational.builder.FrenchMealBuilder;
import za.ac.cput.DesignPatterns.Creational.builder.ItalianMealBuilder;
import za.ac.cput.DesignPatterns.Creational.builder.JapaneseMealBuilder;
import za.ac.cput.DesignPatterns.Creational.builder.MealDirector;
import za.ac.cput.DesignPatterns.Creational.builder.SouthAfricaMealBuilder;

/**
 *
 * @author Nashief
 */ 
@Configurable
public class MealBuilderConf {
    @Bean 
    public ItalianMealBuilder imb(){
    return new ItalianMealBuilder();
    
    }
    
    @Bean 
    public JapaneseMealBuilder jmb(){
   return new JapaneseMealBuilder();
    }
    
     @Bean
     public MealDirector mb(){
     return new MealDirector();
     }
     
     @Bean 
     public SouthAfricaMealBuilder samb(){
     return new SouthAfricaMealBuilder();
     }
     
     @Bean 
     public FrenchMealBuilder fmb(){
     return new FrenchMealBuilder();
     }
     
}
